package com.lxh.flyweight;

/**
 * Create by lxh on 2020/2/16
 */
public class Circle implements Shape {

    private String color;
    private int radius;

    public Circle(String color) {
        this.color = color;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    @Override
    public void draw() {
        System.out.println("半径为" + radius + color + "的圆");
    }
}
